﻿(self.webpackChunkvk=self.webpackChunkvk||[]).push([[24509],{25432:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class i extends r.Component{constructor(e){super(e),this.onError=()=>{this.setState({errored:!0})},this.state={}}render(){var e=this.props,t=e.photo,n=e.title,i=e.isOnline,l=e.isMobile,c=e.onlineSize,d=e.element,u=e.className,h=s(e,["photo","title","isOnline","isMobile","onlineSize","element","className"]),p=d||"div",m=`Avatar--badge-${c}`,f=(0,a.classNames)("Avatar",m,u,{"Avatar--online":i,"Avatar--mobile":l});return r.createElement(p,o({className:f},h),r.createElement("div",{className:"Avatar__wrapper"},r.createElement("img",{onError:this.onError,className:"Avatar__img",src:this.state.errored?"/images/camera_c.gif":t,alt:n})))}}i.defaultProps={isOnline:!1,isMobile:!1,onlineSize:"m"}},730365:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(667294),a=n(973935),o=(n(45697),n(659397));class s extends r.Component{constructor(){super(...arguments),this.getScrollbarWidth=()=>{var e=document.createElement("div");e.classList.add(this._scrollbarMeasureClass),document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},this.hideScrollBar=()=>{var e=document.body.getBoundingClientRect(),t=e.left+e.right<window.innerWidth,n=this.getScrollbarWidth();this.calculatedPadding=window.getComputedStyle(document.body)["padding-right"],t&&(document.body.style.paddingRight=`${parseFloat(this.calculatedPadding)+n}px`),document.body.classList.add(this._bodyHiddenOverflowClass)},this.showScrollBar=()=>{document.body.style.paddingRight=this.calculatedPadding,document.body.classList.remove(this._bodyHiddenOverflowClass)},this.onDocumentKeyDown=e=>{var t=this.props.onClose;"Escape"===e.key&&t()},this.onBackdropClick=()=>{var e=this.props,t=e.onClose,n=e.onBackdropClick;e.disableBackdropClick||(n?n():t())}}componentDidMount(){var e=this.props,t=e.disableEscapeClose,n=e.disableBodyScroll;t||document.body.addEventListener("keydown",this.onDocumentKeyDown),n&&(this._scrollbarMeasureClass=r.createElement("div",{className:"BaseModal__scrollbarMeasure"}).props.className,this._bodyHiddenOverflowClass=r.createElement("div",{className:"BaseModal__bodyHiddenOverflow"}).props.className,this.hideScrollBar())}componentWillUnmount(){var e=this.props,t=e.disableEscapeClose,n=e.disableBodyScroll;t||document.body.removeEventListener("keydown",this.onDocumentKeyDown),n&&this.showScrollBar()}renderModal(){var e=this.props.className,t=(0,o.classNames)("BaseModal",e);return r.createElement("div",{className:t,"aria-modal":"true"},r.createElement("div",{className:"BaseModal__backdrop",onClick:this.onBackdropClick}),r.createElement("div",{className:"BaseModal__content"},this.props.children))}render(){return a.createPortal(this.renderModal(),document.body)}}s.defaultProps={className:"",children:null,disableBackdropClick:!1,disableEscapeClose:!1,disableBodyScroll:!1};const i=s},869666:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class i extends r.Component{constructor(e){super(e),this.onTransitionEnd=e=>{this.state.shown&&"opacity"===e.propertyName&&(this.timeout=setTimeout((()=>{this.setState({shown:!1}),this.props.callback()}),this.props.duration))},this.state={shown:e.shown}}UNSAFE_componentWillReceiveProps(e){!this.props.shown&&e.shown&&this.setState({shown:!0})}componentWillUnmount(){this.timeout&&clearTimeout(this.timeout)}render(){var e=this.props,t=(e.shown,e.callback,e.duration,e.className),n=e.children,i=s(e,["shown","callback","duration","className","children"]),l=(0,a.classNames)("BlinkText",{"BlinkText--shown":this.state.shown},t);return r.createElement("span",o({},i,{className:l,onTransitionEnd:this.onTransitionEnd,"aria-hidden":!0}),n)}}i.defaultProps={duration:2e3}},674041:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class i extends r.Component{constructor(){super(...arguments),this.onChange=e=>{this.props.onChange&&this.props.onChange(this.props.name,e.target.checked,e)}}render(){var e=this.props,t=e.children,n=e.checked,i=e.disabled,l=e.indeterminate,c=e.name,d=e.id,u=s(e,["children","checked","disabled","indeterminate","name","id"]),h=(0,a.classNames)("CheckBox",u.className,{"CheckBox--disabled":i,"CheckBox--indeterminate":l});return r.createElement("label",{className:h},r.createElement("input",o({},u,{className:"CheckBox__input",id:d,type:"checkbox",checked:n,name:c,disabled:i,onChange:this.onChange})),r.createElement("span",{className:"CheckBox__indicator","aria-hidden":!0}),t)}}},739519:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=e=>{var t=e.children,n=e.isMuted,i=e.className,l=s(e,["children","isMuted","className"]),c=(0,a.classNames)("Counter",i,{"Counter--muted":n});return r.createElement("div",o({},l,{className:c}),t)};i.defaultProps={isMuted:!1};const l=i},753449:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});n(175115),n(991181),n(296253);var r=n(667294),a=n(973935),o=(n(45697),n(659397));class s extends r.Component{constructor(e){super(e),this.onClick=()=>{if(!this.state.dropdown||this.state.dropdown.removed){var e=this.props,t=e.text,n=e.position,r=e.align,a=e.marginTop,s=e.marginLeft,i=e.horizontalPosition,l=(0,o.getOffsetRect)(this.el);this.update({text:t,position:n,horizontalPosition:i,align:r,rect:l,marginTop:a,marginLeft:s})}else this.update()},this.onMouseEnter=()=>{this.callerHovered=!0,this.timeouts.appear=setTimeout((()=>{if(this.el&&this.callerHovered){var e=this.props,t=e.position,n=e.align,r=e.marginTop,a=e.marginLeft,s=e.horizontalPosition,i=(0,o.getOffsetRect)(this.el);this.update({position:t,align:n,horizontalPosition:s,rect:i,marginTop:r,marginLeft:a})}}),80)},this.onMouseLeave=()=>{this.callerHovered=!1,this.timeouts.callerDisappear=setTimeout((()=>{this.callerHovered||this.hovered||this.update()}),250)},this.onDropdownMouseEnter=()=>{"hover"===this.props.trigger&&(this.hovered=!0)},this.onDropdownMouseLeave=()=>{"hover"===this.props.trigger&&(this.hovered=!1,this.timeouts.disappear=setTimeout((()=>{this.callerHovered||this.hovered||this.update()}),250))},this.onDocumentClick=e=>{!this.state.dropdown||this.state.dropdown.removed||this.el.contains(e.target)||this.update()},this.onResize=()=>{if(this.state.dropdown&&!this.state.dropdown.removed){var e=this.props,t=e.text,n=e.position,r=e.align,a=e.marginTop,s=e.marginLeft,i=e.horizontalPosition,l=(0,o.getOffsetRect)(this.el);this.update({text:t,position:n,align:r,horizontalPosition:i,rect:l,marginTop:a,marginLeft:s})}},this.onTransitionEnd=e=>{"visibility"===e.propertyName&&this.state.dropdown&&this.state.dropdown.removed&&this.setState({dropdown:void 0})},this.onItemClick=(e,t)=>{t.separator||(this.update(),t.onClick&&t.onClick(e))},this.state={},this.timeouts={}}componentDidMount(){this.el=a.findDOMNode(this),"click"===this.props.trigger?(this.el.addEventListener("click",this.onClick),document.addEventListener("mousedown",this.onDocumentClick),window.addEventListener("resize",this.onResize)):(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave))}componentWillUnmount(){Object.keys(this.timeouts).forEach((e=>{clearTimeout(this.timeouts[e])})),"click"===this.props.trigger?(this.el.removeEventListener("click",this.onClick),document.removeEventListener("mousedown",this.onDocumentClick),window.removeEventListener("resize",this.onResize)):(this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",this.onMouseLeave)),this.defaultNode&&(this.defaultNode.parentNode.removeChild(this.defaultNode),delete this.defaultNode)}update(e){if(!e)return this.setState({dropdown:Object.assign({},this.state.dropdown,{removed:!0})});var t=e.position,n=e.align,r=e.horizontalPosition,a=e.rect,o=e.marginTop,s=e.marginLeft,i=a.left,l=a.top;switch(t){case"t":"center"===r?i+=.5*a.width:"right"===r&&(i+=a.width);break;case"r":i+=a.width,l+=.5*a.height;break;case"b":l+=a.height,"center"===r?i+=.5*a.width:"right"===r&&(i+=a.width);break;case"l":l+=.5*a.height}i=Math.round(i+s),l=Math.round(l+o),this.setState({dropdown:{position:t,align:n,x:i,y:l}})}renderDropdown(){if(!this.state.dropdown)return null;var e=this.state.dropdown,t=e.x,n=e.y,a=e.position,s=e.align,i=e.removed,l=(0,o.classNames)("Dropdown",`Dropdown--${a}`,{"Dropdown--removed":!!i,[`Dropdown--align-${s}`]:"t"===a||"b"===a},`Dropdown--${this.props.appearance}`,this.props.className);return r.createElement("div",{className:l,style:{top:n,left:t},onTransitionEnd:e=>this.onTransitionEnd(e),onMouseEnter:this.onDropdownMouseEnter,onMouseLeave:this.onDropdownMouseLeave},r.createElement("ul",{className:"Dropdown__in"},this.props.data.map(((e,t)=>r.createElement("li",{className:(0,o.classNames)("Dropdown__item",{Dropdown__itemSeparator:e.separator},{Dropdown__itemNegative:e.negative},{Dropdown__itemNoHover:e.noHover}),onClick:t=>this.onItemClick(t,e),key:void 0!==e.id?e.id:t},e.text)))))}render(){var e=this.renderDropdown();return e?(this.defaultNode||"undefined"==typeof window||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),r.createElement(r.Fragment,null,this.props.children,a.createPortal(e,this.defaultNode))):this.props.children}}s.defaultProps={position:"b",horizontalPosition:"center",align:"center",marginTop:0,marginLeft:0,trigger:"click",className:"",appearance:"primary"}},888282:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});n(175115);var r=n(667294),a=n(973935),o=(n(45697),n(659397)),s=n(273947),i={height:"auto"};class l extends r.Component{constructor(e){super(e),this.onChange=e=>{this.props.onChange?this.props.onChange(e):this.setState({value:e.target.value,changed:this.props.value!==this.state.value})},this.onClick=()=>{this.setState({editing:!0},(()=>{this.textarea&&this.textarea.focus&&(this.textarea.focus(),this.textarea.select()),this.props.onStartEdit&&this.props.onStartEdit()}))},this.onBlur=()=>{this.state.changed||this.setState({editing:!1})},this.onSave=()=>{this.props.validate&&!this.props.validate(this.state.value)||(this.setState({editing:!1,changed:!1}),this.props.onSave&&this.props.onSave({value:this.state.value}))},this.onKeydown=e=>{this.state.editing&&(27===e.keyCode&&(this.props.onCancel&&this.props.onCancel(),this.setState({editing:!1,changed:!1,value:this.props.value}),e.preventDefault(),e.stopPropagation()),this.props.useEnter&&13===e.keyCode&&(this.onSave(),e.preventDefault(),e.stopPropagation()))},this.getRef=e=>{e&&e.element&&(this.textarea=e.element)},this.state={value:e.value,editing:!1,changed:!!e.onChange&&e.changed}}UNSAFE_componentWillReceiveProps(e){this.setState({value:e.value,changed:e.onChange?e.changed:e.value===this.state.value})}componentDidMount(){this.el=a.findDOMNode(this),this.el.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){this.el.removeEventListener("keydown",this.onKeydown)}render(){var e=this.props,t=e.className,n=e.validate,a=e.placeholder,l=this.state,c=l.editing,d=l.changed,u=l.value,h=(0,o.classNames)("EditableLabel",{"EditableLabel--editing":c,"EditableLabel--changed":d,"EditableLabel--invalid":n&&!n(u),"EditableLabel--placeholder":!u.trim()&&a},t);return r.createElement("div",{className:h},c?r.createElement(r.Fragment,null,r.createElement(s.default,{className:"EditableLabel__textarea",onChange:this.onChange,onInput:this.onChange,onPaste:this.onChange,value:u,onBlur:this.onBlur,style:Object.assign({},i,this.props.textareaStyles),rows:"1",ref:this.getRef,placeholder:a}),d&&r.createElement("button",{className:"EditableLabel__save",onClick:this.onSave})):r.createElement("div",{className:"EditableLabel__text",onClick:this.onClick},u.trim()?u:a))}}l.defaultProps={value:"",changed:!1,useEnter:!1,textareaStyles:{},placeholder:""}},919316:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(667294),a=(n(45697),n(659397)),o=n(664891),s=n(713696);class i extends r.PureComponent{constructor(e){super(e),this.onError=()=>{this.setState({errored:!0})},this.state={}}getPhotoImage(){var e=this.props,t=e.photo,n=e.title;return r.createElement("img",{src:this.state.errored?"/images/camera_c.gif":t,alt:n,onError:this.onError,className:"Entity__photo"})}render(){var e=this.props,t=e.onLinkClick,n=e.className,i=e.style,l=e.size,c=e.photo,d=e.href,u=e.title,h=e.description,p=e.target,m=e.linkClassName,f={[`Entity--size${l}`]:!!l},v=e.ignoreDecodeHTML?u:(0,s.decodeHTMLEntities)(u);return r.createElement("div",{className:(0,a.classNames)("Entity",n,f),style:i},r.createElement("div",{className:"Entity__aside"},"string"==typeof c?d?r.createElement("a",{href:d,target:p},this.getPhotoImage()):this.getPhotoImage():c),r.createElement("div",{className:"Entity__main"},u&&d?r.createElement("div",{className:"Entity__title"},r.createElement(o.default,{onClick:t,className:m,href:d,target:p},v)):r.createElement("div",{className:"Entity__title"},v),"string"!=typeof h?r.createElement("div",{className:"Entity__description"},h):r.createElement("div",{className:"Entity__description"},(0,s.decodeHTMLEntities)(h))))}}i.defaultProps={size:null,photo:"",title:"",description:"",href:"",target:null,ignoreDecodeHTML:!1,onLinkClick:()=>{}}},928385:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(664891)),o=n(659397);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class l extends r.Component{constructor(e){super(e),this.changeHandler=e=>{this.setState({value:e.target.value}),this.props.onChange&&this.props.onChange(e)},this.onMouseEnter=()=>this.setState({hovered:!0}),this.onMouseLeave=()=>this.setState({hovered:!1}),this.state={value:null,hovered:!1},this.inputRef=r.createRef()}render(){var e=this.props,t=e.style,n=(e.label,e.children,e.className),l=i(e,["style","label","children","className"]);return r.createElement("span",{className:(0,o.classNames)("File",n),style:t},r.createElement("label",{className:"File__in",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},r.createElement("input",s({},l,{ref:this.inputRef,className:"File__self",type:"file",onChange:this.changeHandler}))),r.createElement(a.default,{hovered:this.state.hovered},this.props.children))}}l.defaultProps={style:{},onChange:()=>{}}},479806:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const i=e=>{var t=e.className,n=s(e,["className"]);return r.createElement("div",o({className:(0,a.classNames)("HintIcon",t)},n))}},423985:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});n(530522),n(66108),n(296253),n(991181),n(579665),n(95767);var r=n(667294),a=(n(45697),n(439664)),o=n(659397);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}class l extends r.Component{constructor(e){super(e),this.checkLoad=(0,o.throttle)((e=>{var t=s(e,3),n=t[0],r=t[1],a=t[2];if(!this.loading){if(!this.props.virtualized&&!this.props.hasMore){if(this.props.onScroll)return;return this.detachListeners()}r-n-a<=this.props.threshold&&(this.loading=!0,this.props.loadMore().then((()=>{this.loading=!1})))}}),34),this.onScroll=e=>{var t=this.getScrollData();this.props.onScroll&&this.props.onScroll(e),this.props.virtualized&&this.processChildren(this.props.children,t),this.props.hasMore&&this.checkLoad(t)},this.getRef=e=>{this.container=e,this.props.virtualized&&this.setState(this.getChildrenData(this.props.children,this.getScrollData()))},this.useWindowScroll=e.useWindowScroll,e.virtualized&&(this.state={before:0,after:e.children.length,start:0,end:0})}getScrollData(){var e=this.useWindowScroll?document.documentElement:this.container;return[this.getScrollTop(),e?e.scrollHeight:0,e?e.clientHeight:0]}getScrollTop(){var e=document.documentElement||document.body.parentNode||document.body;return this.useWindowScroll?void 0!==window.pageYOffset?window.pageYOffset:e.scrollTop:this.container?this.container.scrollTop:0}attachListeners(){var e=this.useWindowScroll?window:this.container;this.container&&(e.addEventListener("scroll",this.onScroll,this.props.useCapture),e.addEventListener("resize",this.onScroll,this.props.useCapture))}detachListeners(){var e=this.useWindowScroll?window:this.container;this.container&&(e.removeEventListener("scroll",this.onScroll,this.props.useCapture),e.removeEventListener("resize",this.onScroll,this.props.useCapture))}processChildren(e,t){var n=this.state,r=this.getChildrenData(e,t||this.getScrollData()),a=r.start,o=r.end,s=r.before,i=r.after;a===n.start&&o===n.end&&s===n.before&&i===n.after||this.setState(r)}getChildrenData(e,t){var n=s(t,3),r=n[0],a=n[1],o=n[2],i=this.useWindowScroll?window:this.container,l=i&&i.offsetHeight;if(!i||0===a||0===o)return{start:0,end:0,before:0,after:e.length};o=Math.max(o,l);var c=e.length,d=Math.max(Math.floor(r/this.props.itemHeight)-1,0),u=Math.min(Math.floor((r+2*o)/this.props.itemHeight+1),c);return{start:d,end:u,before:d,after:c-u}}UNSAFE_componentWillReceiveProps(e){this.props.virtualized&&this.processChildren(e.children)}componentDidMount(){this.attachListeners()}componentWillUnmount(){this.detachListeners()}render(){return r.createElement("div",{className:(0,o.classNames)("InfiniteScroll",this.props.className),ref:this.getRef,style:this.props.style},this.props.virtualized&&this.state.before>0&&r.createElement("div",{style:{height:this.state.before*this.props.itemHeight},key:"before"}),this.props.virtualized?[].concat(this.props.children).slice(this.state.start,this.state.end):this.props.children,this.props.virtualized&&this.state.after>0&&r.createElement("div",{style:{height:this.state.after*this.props.itemHeight},key:"after"}),this.props.hasMore&&(this.props.loader||r.createElement("div",{className:"InfiniteScroll__loader",key:"loader"},r.createElement(a.default,{color:this.props.spinnerColor}))))}}l.defaultProps={useWindowScroll:!1,virtualized:!1,hasMore:!0,useCapture:!1,threshold:100,itemHeight:55}},842025:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});n(175115),n(530522),n(579665),n(95767),n(991181),n(66108),n(296253),n(21466);var r=n(667294),a=(n(45697),n(889366));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e){var t=e.onCommit,n=e.value,i=e.postText,c=e.minValue,d=e.maxValue,u=e.allowEmpty,h=e.pattern,p=void 0===h?null:h,m=l(e,["onCommit","value","postText","minValue","maxValue","allowEmpty","pattern"]),f=r.useRef(),v=s(r.useState(void 0===n?"":n),2),g=v[0],y=v[1],b=s(r.useState(!1),2),_=b[0],E=b[1];return i=i||"",r.createElement(a.default,o({},m,{ref:f,value:_||""===g?g:"function"==typeof i?i(g):g+i,isControlledOutside:!0,onFocus:()=>{if(E(!0),f.current){var e=f.current.element;e.value=g,e.select()}},onChange:function(e){var t=e.target.value;p&&!t.match(p)||y(t)},onBlur:function(){if(E(!1),u&&""===g)return t("");if((g&&g.toString().trim())!==(n&&n.toString().trim())){var e=Math.min(d,Math.max(c,parseFloat(g)||0));y(e),t(e)}},onKeyDown:e=>{"Enter"===e.key&&f.current.element.blur()}}))}c.defaultProps={minValue:-1/0,maxValue:1/0,onCommit:()=>{},pattern:null}},235445:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(667294),a=(n(45697),n(973935)),o=n(659397);class s extends r.Component{constructor(e){super(e),this.handleMouseDown=e=>{this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus(this.state.isOpen),"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))},this.setValue=(e,t)=>{var n={selected:{value:e,label:t},isOpen:!1};this.fireChangeEvent(n),this.setState(n)},this.fireChangeEvent=e=>{e.selected!==this.state.selected&&this.props.onChange&&this.props.onChange({name:this.props.name,selected:e.selected})},this.handleDocumentClick=e=>{this.mounted&&this.state.isOpen&&!this.el.contains(e.target)&&this.setState({isOpen:!1})},this.state={selected:s.getSelected(e),isOpen:!1},this.mounted=!0}UNSAFE_componentWillReceiveProps(e){var t=s.getSelected(e);t!==this.state.selected&&this.setState({selected:t})}componentDidMount(){this.el=a.findDOMNode(this),document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}componentWillUnmount(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}static getSelected(e){var t=e.value;return void 0!==t?e.options.find((e=>"object"!=typeof e?e===t:e.value===t)):{label:e.placeholder||"",value:""}}renderOption(e){var t=(0,o.classNames)("LegacySelect__option",{"LegacySelect__option--selected":e===this.state.selected}),n=void 0!==e.value?e.value:e.label||e,a=void 0!==e.label?e.label:e;return r.createElement("div",{key:n,className:t,onMouseDown:()=>this.setValue(n,a),onClick:()=>this.setValue(n,a)},a)}buildMenu(){var e=this.props.options.map((e=>"group"===e.type?r.createElement("div",{className:"LegacySelect__group",key:e.name},e.name&&r.createElement("div",{className:"LegacySelect__title"},e.name),e.items.map((e=>this.renderOption(e)))):this.renderOption(e)));return e.length?e:r.createElement("div",{className:"LegacySelect__noresults"},"No options found")}render(){var e=this.props,t=e.className,n=e.style,a=(0,o.classNames)("LegacySelect",t,{"LegacySelect--opened":this.state.isOpen,"LegacySelect--disabled":this.props.disabled});return r.createElement("div",{className:a,style:n},r.createElement("div",{className:"LegacySelect__control",onClick:this.handleMouseDown},r.createElement("div",{className:"LegacySelect__placeholder"},"string"==typeof this.state.selected?this.state.selected:this.state.selected.label),r.createElement("div",{className:"LegacySelect__arrow"})),this.state.isOpen&&r.createElement("div",{className:"LegacySelect__menu"},this.buildMenu()))}}},777527:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});n(175115);var r=n(667294);n(45697);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}class o extends r.Component{constructor(e){if(super(e),this.props.defaultValue<0||this.props.defaultValue>1)throw new Error("Bad defaultValue specified to Slider");this.containerRef=r.createRef()}componentDidUpdate(e){this.props.value!==e.value&&this.sliderElement.setValue(this.props.value,!0)}componentDidMount(){this.sliderElement=new window.Slider(this.containerRef.current,a({size:1,value:this.props.defaultValue,formatHint:this.props.formatHint,onChange:this.props.onChange},this.props))}render(){return r.createElement("div",{className:`SliderLegacy SliderLegacy--${this.props.color} ${this.props.className}`,ref:this.containerRef})}}o.defaultProps={color:"blue",defaultValue:.5,formatHint:e=>Math.round(100*e)}},664891:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class i extends r.Component{render(){var e=this.props,t=e.onClick,n=e.hovered,i=e.className,l=e.children,c=s(e,["onClick","hovered","className","children"]),d=(0,a.classNames)("Link",{"Link--hovered":!!n},i);return this.props.href?r.createElement("a",o({onClick:t},c,{className:d}),l):r.createElement("span",o({onClick:t},c,{className:d}),l)}}i.defaultProps={href:void 0,hovered:!1,onClick:()=>{}}},416601:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const i=e=>{var t=e.children,n=e.className,i=s(e,["children","className"]),l=(0,a.classNames)("LinkButton",n),c=o({},i,{onMouseDown:e=>{e.preventDefault(),i.onMouseDown&&i.onMouseDown(e)}});return r.createElement("button",o({},c,{className:l}),t)}},2291:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(667294),a=(n(45697),n(659397));function o(e){var t={"List--border":!!e.border};return r.createElement("ul",{className:(0,a.classNames)("List",t,e.className),style:e.style},e.children)}o.defaultProps={border:!0}},654857:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(667294),a=(n(45697),n(659397));class o extends r.Component{render(){var e=this.props,t=e.photos,n=e.links,o=e.linkTarget,s=e.onLinkClick,i=e.className,l=(0,a.classNames)("MembersGrid",`MembersGrid--${Math.min(t.length,4)}`,i);return r.createElement("div",{className:l},t.map(((e,t)=>{var a=n&&n[t]?n[t]:void 0,i=a?"a":"span";return r.createElement(i,{key:t,href:a,target:o,onClick:e=>s(e),className:"MembersGrid__i",style:{backgroundImage:`url(${e})`}})})))}}o.defaultProps={links:[],className:""}},161650:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});n(175115);var r=n(667294),a=(n(45697),n(730365)),o=n(743927),s=n(476288),i=n(150382),l=n(659397);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var d=e=>{var t=e.className,n=e.appearance,d=void 0===n?"white":n,u=e.title,h=e.actionButtons,p=e.onClose,m=e.children,f=e.footerHint,v=e.hasScroll,g=e.backText,y=e.onBack,b=(0,l.classNames)("Modal",`Modal--${d}`,t);return r.createElement(a.default,c({},e,{className:b}),r.createElement(o.ModalHeader,{title:u,onClose:p,backText:g,onBack:y}),Boolean(m)&&r.createElement(s.ModalBody,{hasScroll:v},m),r.createElement(i.ModalFooter,{actionButtons:h,hint:f}))};d.Header=o.ModalHeader,d.Body=s.ModalBody,d.Footer=i.ModalFooter;const u=d},102690:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));class o extends r.PureComponent{constructor(e){super(e),this.onPageLinkClick=e=>{e.preventDefault();var t=this.props.onSelect;t&&t(Number(e.target.dataset.index))},this.linkGetter=this.props.linkGetter||(()=>{})}renderPageLink(e,t){var n=this.linkGetter(e);return r.createElement("a",{key:e,href:n,"data-index":e,className:(0,a.classNames)("Pagination__link",{"Pagination__link--selected":e===this.props.current}),onClick:this.onPageLinkClick},t||e+1)}render(){var e=this.props,t=e.count,n=e.current,a=[...Array(t).keys()].slice(Math.max(n-this.props.range,0),n+this.props.range+1),o=a[0]>0,s=a[a.length-1]<t-1;return r.createElement("div",{className:"Pagination"},[o&&this.renderPageLink(0,this.props.prevLabel),a.map((e=>this.renderPageLink(e))),s&&this.renderPageLink(t-1,this.props.nextLabel)])}}o.defaultProps={range:2,prevLabel:"«",nextLabel:"»"}},268959:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(667294),a=(n(45697),n(659397)),o=n(188889),s=n(733024);function i(e){return r.createElement("header",{className:(0,a.classNames)("PopupHeader",e.className),style:e.style},e.back&&r.createElement("div",{className:"PopupHeader__back",onClick:e.onBackClick},r.createElement("button",{className:"PopupHeader__backBtn",onClick:e.onBackClick},r.createElement("span",{className:"PopupHeader__backIcon"},r.createElement(o.default,null)),e.back)),r.createElement("h2",{className:"PopupHeader__title"},e.title),r.createElement("div",{className:"PopupHeader__close"},r.createElement("button",{className:"PopupHeader__closeBtn",onClick:e.onCloseClick},r.createElement(s.default,null))))}i.defaultProps={back:null,title:"",onCloseClick:()=>{}}},863729:(e,t,n)=>{"use strict";n.d(t,{default:()=>l,connect:()=>c});n(175115);var r=n(667294);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}var o=r.createContext(),s=o.Provider,i=o.Consumer;const l=s;function c(e){var t;return t=class extends r.Component{constructor(){super(...arguments),this.onUpdate=()=>{this.setState({})}}componentDidMount(){this.store.subscribe(this.onUpdate)}componentWillUnmount(){this.store.unsubscribe(this.onUpdate)}render(){return r.createElement(i,null,(t=>(this.store||(this.store=t),r.createElement(e,a({},this.props,{store:t})))))}},t}},470720:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});n(175115),n(95767),n(991181),n(66108),n(296253);var r=n(667294),a=(n(45697),n(659397)),o=n(423985),s=n(787255),i=n(362913);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class d extends r.PureComponent{constructor(e){super(e),this.onRemoveToken=e=>{var t=this.searchContainer&&this.searchContainer.offsetHeight;this.props.onRemoveToken(e.target.getAttribute("data-id")).then((()=>{(t||0===t)&&this.updateScroll(t)}))},this.onChange=e=>{var t=e.target.value;t!==this.value&&(this.value=t,this.props.onChange(e),this.scrollContainer.scrollTop=0)},this.onSelect=e=>{var t=this.searchContainer&&this.searchContainer.offsetHeight;this.props.onSelect(e.currentTarget.getAttribute("data-id")).then((()=>{(t||0===t)&&this.updateScroll(t)}))},this.updateScroll=e=>{var t=this.searchContainer.offsetHeight;this.searchContainer.querySelector("#"+this.inputId).focus(),this.searchContainer.scrollTop=this.searchContainer.scrollHeight,e!==t&&(this.scrollContainer.scrollTop=this.scrollContainer.scrollTop+t-e)},this.searchContainerRef=e=>{this.searchContainer=e},this.scrollContainerRef=e=>{var t=e;if(e&&e.container)for(t=e;t.container;)t=t.container;this.scrollContainer=t},this.value=e.value,this.inputId="token-input-"+Math.floor(1e6*Math.random()).toString(16)}render(){var e=this.props,t=e.className,n=e.tokens,d=(e.onSelect,e.renderToken),u=e.onRemoveToken,h=e.removeTokenPlaceholder,p=e.value,m=e.placeholder,f=e.useInfiniteScroll,v=e.loadMore,g=e.hasMore,y=e.virtualized,b=e.notFoundText,_=e.children,E=e.emptyText,N=e.isSearching,w=e.renderSuggest,S=e.useSuggestsWrapper,C=e.data,k=e.renderInput,O=e.opened,M=e.badge,x=c(e,["className","tokens","onSelect","renderToken","onRemoveToken","removeTokenPlaceholder","value","placeholder","useInfiniteScroll","loadMore","hasMore","virtualized","notFoundText","children","emptyText","isSearching","renderSuggest","useSuggestsWrapper","data","renderInput","opened","badge"]),T=f?o.default:"div",P=f?{loadMore:v,hasMore:g,virtualized:y,useCapture:!1}:{},L=_?[].concat(_):[],j=!C&&0===L.length||!!C&&0===C.length&&(p||E)&&!N,R=r.createElement(r.Fragment,null,j&&r.createElement("div",{className:"MultiSelect__empty"},r.createElement("div",{className:"MultiSelect__emptyIn"},p?b:E)),r.createElement(T,l({className:"MultiSelect__scroll",ref:this.scrollContainerRef},P),C?C.map((e=>w(e,this.onSelect))):L.map((e=>w?w(e,this.onSelect):r.createElement(s.default,{className:"MultiSelect__suggestsItem","data-id":e.props["data-id"],onClick:this.onSelect,key:e.key},e))))),D=k?k():r.createElement("div",{className:"MultiSelect__search",ref:this.searchContainerRef},r.createElement(i.default,l({id:this.inputId,tokens:n,onRemoveToken:u,removeTokenTooltip:h,removeTokenAriaLabel:h,placeholder:m,onChange:this.onChange,onSubmit:()=>{},renderToken:d,value:p},x,{className:"MultiSelect__searchInput"})));return r.createElement("div",{className:(0,a.classNames)("MultiSelect",t)},D,M,(void 0===O||!0===O)&&(S?r.createElement("div",{className:"MultiSelect__suggestsWrapper"},R):R))}}d.defaultProps={removeTokenPlaceholder:"",placeholder:"",value:"",useInfiniteScroll:!1,notFoundText:"Not found",useSuggestsWrapper:!1}},771982:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=e=>{var t=e.className,n=e.children,i=s(e,["className","children"]),l=(0,a.classNames)("Radio",t,{"Radio--disabled":e.disabled});return r.createElement("label",{className:l},r.createElement("input",o({className:"Radio__input Radio__visuallyHidden",type:"radio"},i)),r.createElement("span",{className:"Radio__control"}),Boolean(n)&&r.createElement("span",{className:"Radio__text"},n))};i.defaultProps={className:"",name:void 0,onChange:void 0,checked:void 0,defaultChecked:void 0,autoFocus:!1,disabled:!1,children:null};const l=i},32821:(e,t,n)=>{"use strict";n.d(t,{ScrollContext:()=>i,Scroll:()=>l});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({});class l extends r.Component{constructor(){super(...arguments),this.getWrapperRef=e=>{this.wrapper=e}}componentDidMount(){var e=this.props,t=e.isNative,n=e.isShadows,r=e.neverHide,a=e.onScroll;!this.scroller&&this.context&&this.context.createScroll&&(this.scroller=this.context.createScroll(this.wrapper,{shadows:n,nativeScroll:t,hidden:!r,onScroll:a}))}componentDidUpdate(){this.scroller&&this.scroller.update()}componentWillUnmount(){this.scroller&&(this.scroller.destroy(),this.scroller=null)}render(){var e=this.props,t=e.children,n=(e.isNative,e.isShadows,e.neverHide,e.className),i=void 0===n?"":n,l=s(e,["children","isNative","isShadows","neverHide","className"]);return r.createElement("div",o({},l,{className:(0,a.classNames)("Scroll",i),ref:this.getWrapperRef}),t)}}l.defaultProps={isNative:!1,isShadows:!1,neverHide:!1,onScroll:null},l.contextType=i},755348:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(667294),a=n(659397);function o(e){var t={"SubmitArea--left":!e.alignment||"left"===e.alignment,"SubmitArea--center":"center"===e.alignment,"SubmitArea--right":"right"===e.alignment};return r.createElement("div",{className:(0,a.classNames)("SubmitArea",t,e.className),style:e.style},e.children)}},570226:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class i extends r.Component{constructor(){super(...arguments),this.onChange=e=>{var t=this.props.onChange;t&&(this.props.native?t(e):t(this.props.name,e.target.checked))}}render(){var e=this.props,t=e.children,n=e.checked,i=e.disabled,l=e.name,c=e.type,d=void 0===c?"checkbox":c,u=e.id,h=s(e,["children","checked","disabled","name","type","id"]),p=(0,a.classNames)("Switch",h.className,{"Switch--disabled":i,"Switch--last":!t});return r.createElement("label",{className:p,htmlFor:u,tabIndex:"-1","aria-checked":!!n,role:"checkbox"},r.createElement("input",o({},h,{className:"Switch__input",id:u,type:d,checked:n,name:l,disabled:i,onChange:this.onChange})),r.createElement("span",{className:"Switch__indicator","aria-hidden":!0}),t)}}},881850:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(667294),a=(n(45697),n(659397));const o=e=>{var t=e.children,n=e.className;return r.createElement("span",{className:(0,a.classNames)("TextTruncate",n)},t)}},273947:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397));function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}class i extends r.Component{constructor(e){super(e),this.getRef=e=>{this.element=e},this.resize=()=>{var e=this.element;if(e){var t=e.offsetHeight,n=e.scrollHeight,r=0;n+r<=t&&(r=0),e.value&&this.setState({height:n-r}),this.setState({height:0},(()=>{var t=e.scrollHeight-r;this.setState({height:t}),this.props.onResize(e)}))}},this.onChange=e=>{this.props.grow&&this.resize(),this.isControlledOutside||this.setState({value:e.target.value}),this.props.onChange&&this.props.onChange(e)},this.state={value:void 0===e.value?e.initialValue||"":void 0},void 0!==e.value&&(this.isControlledOutside=!0)}componentDidMount(){this.props.grow&&this.resize()}render(){var e=this.props,t=e.className,n=(e.initialValue,e.grow,e.style),i=(e.onResize,e.value),l=s(e,["className","initialValue","grow","style","onResize","value"]),c=this.isControlledOutside?i:this.state.value,d=this.state.height||n.height||66;return r.createElement("textarea",o({},l,{value:c,onChange:this.onChange,onInput:this.onChange,onPaste:this.onChange,ref:this.getRef,style:o({},n,{height:d}),className:(0,a.classNames)("Textarea",t)}))}}i.defaultProps={initialValue:"",grow:!0,onResize:()=>{},style:{}}},362913:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});n(175115),n(95767),n(991181),n(296253);var r=n(667294),a=(n(45697),n(659397)),o=n(897404),s=n(711798);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e){var t=e.id,n=e.name,c=e.tokens,d=e.onRemoveToken,u=e.removeTokenTooltip,h=e.removeTokenAriaLabel,p=e.renderToken,m=e.onChange,f=e.value,v=e.placeholder,g=e.onSubmit,y=e.className,b=e.hideInputWithName,_=l(e,["id","name","tokens","onRemoveToken","removeTokenTooltip","removeTokenAriaLabel","renderToken","onChange","value","placeholder","onSubmit","className","hideInputWithName"]),E=r.useRef(),N=r.useCallback((e=>m(e)),[m]),w=r.useCallback((e=>{"Esc"===e.key&&E.current&&(E.current.value="",E.current.blur(),m(e),e.stopPropagation()),"Enter"===e.key&&g()}),[g]),S=r.useCallback((e=>{var t,n,r=null===(t=(n=e.target).closest)||void 0===t?void 0:t.call(n,"[data-id]").dataset.id;r&&(d(r),E.current&&E.current.focus())}),[d]);return r.createElement("div",{className:(0,a.classNames)("TokenInput",y)},r.createElement("label",{htmlFor:t,className:"TokenInput__back"}),c.map((e=>r.createElement("span",{key:e.id,className:"TokenInput__token"},!b&&r.createElement("input",{type:"hidden",name:n+"[]",value:e.value||e.id}),r.createElement("span",{className:"TokenInput__label"},p?p(e):e.text),!e.locked&&u&&r.createElement(o.default,{text:u},r.createElement("button",{"data-id":e.id,className:"TokenInput__remove",onClick:S,"aria-label":h},r.createElement(s.default,null))),!e.locked&&!u&&r.createElement("button",{"data-id":e.id,className:"TokenInput__remove",onClick:S,"aria-label":h})))),r.createElement("div",{className:"TokenInput__caret"},r.createElement("div",{className:"TokenInput__caretIn"},r.createElement("input",i({},_,{id:t,type:"text",value:f,onChange:N,onPaste:N,placeholder:0===c.length?v:"",onKeyDown:w,className:"TokenInput__input",ref:E})))))}c.defaultProps={id:"token-input",name:"tokens",removeTokenTooltip:"",removeTokenAriaLabel:"Remove item",placeholder:"",className:""}},113142:(e,t,n)=>{"use strict";n.d(t,{AlertType:()=>r,Alert:()=>c});var r,a=n(667294),o=n(659397),s=n(21414),i=n(662986),l=n(608810);!function(e){e.Done="done",e.Wrong="wrong",e.Warning="warning",e.Info="info"}(r||(r={}));var c=function(e){var t=e.type,n=void 0===t?r.Info:t,c=e.children,d=e.icon,u=void 0===d?null:d,h=e.className;if(!u)switch(n){case r.Done:u=a.createElement(s.default,{className:"Alert__icon"});break;case r.Wrong:u=a.createElement(i.default,{className:"Alert__icon"});break;case r.Warning:u=a.createElement(l.default,{className:"Alert__icon"})}var p,m=null;switch(n){case r.Done:case r.Info:m="status",p="polite";break;case r.Wrong:case r.Warning:m="alert",p="assertive"}return a.createElement("div",{className:(0,o.classNames)("Alert","Alert--"+n,h),role:m,"aria-live":p},u,a.createElement("div",{className:"Alert__content"},c))}},195200:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(570655),a=n(667294),o=n(973935),s=n(659397);const i=function(e){var t,n=e.x,i=e.y,l=e.text,c=e.position,d=void 0===c?"b":c,u=e.align,h=void 0===u?"center":u,p=e.removed,m=e.maxWidth,f=e.appearance,v=void 0===f?"dark":f,g=e.className,y=e.tooltipRef,b=e.tooltipInRef,_=e.arrow,E=(0,r.__rest)(e,["x","y","text","position","align","removed","maxWidth","appearance","className","tooltipRef","tooltipInRef","arrow"]),N=(0,a.useRef)(null);E.static||N.current||(N.current=document.createElement("div"),document.body.appendChild(N.current));var w=(0,s.classNames)("Tooltip","Tooltip--"+d,"Tooltip--"+v,((t={"Tooltip--static":E.static,"Tooltip--removed":!!p})["Tooltip--align-"+h]="t"===d||"b"===d,t["Tooltip--arrow-"+_]="r"===d||"l"===d||"hide"===_,t),g),S=a.createElement("div",(0,r.__assign)({},E,{className:w,ref:y,style:E.static?{}:{top:i,left:n}}),"string"==typeof l&&a.createElement("div",{className:"Tooltip__in",ref:b,style:{maxWidth:m},dangerouslySetInnerHTML:{__html:l}}),"string"!=typeof l&&a.createElement("div",{className:"Tooltip__in",ref:b,style:{maxWidth:m}},l));return E.static?S:N.current?(0,o.createPortal)(S,N.current):S}},878517:(e,t,n)=>{"use strict";n.d(t,{BlockSearchInput:()=>i});var r=n(570655),a=n(667294),o=n(659397),s=n(889366),i=(0,a.forwardRef)((function(e,t){var n=e.className,i=(0,r.__rest)(e,["className"]);return a.createElement(s.default,(0,r.__assign)({},i,{className:(0,o.classNames)(n,"BlockSearchInput"),ref:t}))}))},721022:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);const s=function(e){function t(t){var n=e.call(this,t)||this;return n.headerClick=function(){n.toggle(!n.state.opened)},n.setChildrenRef=function(e){n.childrenRef=e,n.state.opened&&n.updateHeight()},n.state={opened:t.opened,childrenHeight:0},n}return(0,r.__extends)(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this;this.setState({opened:e.opened},(function(){t.updateHeight()}))},t.prototype.updateHeight=function(){if(this.state.opened&&!this.props.autoHeight&&this.childrenRef){var e=Number((this.childrenRef.children[0].clientHeight+5).toString());this.state.childrenHeight!==e&&this.setState({childrenHeight:e})}},t.prototype.toggle=function(e){var t=this;this.setState({opened:e},(function(){t.props.toggleCallback&&t.props.toggleCallback(e),t.updateHeight()}))},t.prototype.render=function(){var e=this.props,t=e.header,n=e.children,r=e.autoHeight,s=this.state,i=s.opened,l=s.childrenHeight,c=(0,o.classNames)("Collapse",this.props.className,{"Collapse--opened":i}),d=(0,o.classNames)("Collapse__header",{Collapse__stringHeader:"string"==typeof t}),u="0";return i&&(u=r?"none":l+"px"),a.createElement("div",{className:c},t&&a.createElement("div",{onClick:this.headerClick,className:d},t),a.createElement("div",{ref:this.setChildrenRef,className:"Collapse__content",style:{maxHeight:u}},a.createElement("div",null,n)))},t.defaultProps={header:"",opened:!1},t}(a.Component)},406042:(e,t,n)=>{"use strict";n.d(t,{ConversationNoPhoto:()=>s});var r=n(570655),a=n(667294),o=n(659397),s=function(e){var t=e.id,n=e.size,s=void 0===n?"m":n,i=e.text,l=e.specificType,c=e.className,d=(0,r.__rest)(e,["id","size","text","specificType","className"]),u=l||Math.abs(t%6)+1,h=(0,o.classNames)("ConversationNoPhoto","ConversationNoPhoto--"+u,"ConversationNoPhoto--"+s,c);return a.createElement("figure",(0,r.__assign)({},d,{className:h,dangerouslySetInnerHTML:{__html:i}}))}},809670:(e,t,n)=>{"use strict";n.d(t,{CopyText:()=>a});var r=n(667294),a=function(e){var t=e.text,n=e.onCopyDone,a=e.children,o=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){o.current&&(o.current.focus(),o.current.select(),document.execCommand("copy"),e.preventDefault(),e.stopPropagation(),n&&n())}),[n]);return r.createElement("div",{className:"CopyText",onClick:s},r.createElement("input",{type:"text",readOnly:!0,value:t||"",ref:o,className:"CopyText__input"}),a)}},986306:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);function s(e){var t=e.text,n=e.searchText,s=e.className,i=(0,r.__rest)(e,["text","searchText","className"]),l=(0,o.classNames)("HighlightSearchText",s),c=a.createElement("span",(0,r.__assign)({className:l},i),t);if(n&&t){var d=t.toLowerCase().indexOf(n.toLowerCase());if(d<0)return c;var u=t.substring(0,d),h=t.substring(d,d+n.length),p=t.substring(d+n.length,t.length);c=a.createElement("span",(0,r.__assign)({className:l},i),u,a.createElement("span",{className:"HighlightSearchText__highlighted"},h),p)}return c}},599940:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(570655),a=n(667294),o=n(973935),s=n(659397),i=n(195200),l=function(e){var t=e.position,n=e.align,r=e.text,a=e.rect,o=e.marginTop,s=e.marginLeft,i=e.maxWidth,l=e.appearance,c=e.className,d=a.left,u=a.top;switch(t){case"t":d+=.5*a.width;break;case"r":d+=a.width,u+=.5*a.height;break;case"b":d+=.5*a.width,u+=a.height;break;case"l":u+=.5*a.height}return{tooltip:{position:t,align:n,text:r,x:d=Math.round(d+(s||0)),y:u=Math.round(u+(o||0)),maxWidth:i,appearance:l,className:c}}};const c=function(e){function t(t){var n=e.call(this,t)||this;return n.tooltipRef=a.createRef(),n.onMouseEnter=function(){if(n.state.el){var e=n.props,t=e.text,r=e.position,a=e.align,o=e.marginTop,i=e.marginLeft,l=e.maxWidth,c=e.appearance,d=e.className,u=(0,s.getOffsetRect)(n.state.el instanceof HTMLElement?n.state.el:null);n.update({text:t,position:r,align:a,rect:u,marginTop:o,marginLeft:i,maxWidth:l,appearance:c,className:d})}},n.onMouseLeave=function(e){var t=e.relatedTarget,r=n.tooltipRef.current;!(Boolean(t)&&Boolean(r)&&(r===t||(null==r?void 0:r.contains(t))))&&n.update()},n.onTransitionEnd=function(e){"visibility"===e.propertyName&&n.state.tooltip&&n.setState({tooltip:void 0})},n.onTooltipMouseEnter=function(){return n.onMouseEnter()},n.onTooltipMouseLeave=function(){return n.update()},n.state={el:null},n}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=o.findDOMNode(this);this.setState({el:e}),null==e||e.addEventListener("mouseenter",this.onMouseEnter),null==e||e.addEventListener("mouseleave",this.onMouseLeave)},t.prototype.componentWillUnmount=function(){var e,t;null===(e=this.state.el)||void 0===e||e.removeEventListener("mouseenter",this.onMouseEnter),null===(t=this.state.el)||void 0===t||t.removeEventListener("mouseleave",this.onMouseLeave)},t.getDerivedStateFromProps=function(e,t){return t.tooltip&&(e.text!==t.tooltip.text||e.position!==t.tooltip.position||e.align!==t.tooltip.align||e.maxWidth!==t.tooltip.maxWidth||e.appearance!==t.tooltip.appearance)?l((0,r.__assign)((0,r.__assign)({},e),{rect:(0,s.getOffsetRect)(t.el instanceof HTMLElement?t.el:null)})):null},t.prototype.update=function(e){if(!e)return this.setState({tooltip:Object.assign({},this.state.tooltip,{removed:!0})});this.setState(l(e))},t.prototype.render=function(){var e=this.state.tooltip;return e&&"undefined"!=typeof window?a.createElement(a.Fragment,null,this.props.children,a.createElement(i.default,(0,r.__assign)({},e,{tooltipRef:this.tooltipRef,onMouseEnter:this.onTooltipMouseEnter,onMouseLeave:this.onTooltipMouseLeave,onTransitionEnd:this.onTransitionEnd}))):this.props.children},t.defaultProps={position:"b",align:"center",marginTop:0,marginLeft:0,appearance:"dark"},t}(a.Component)},213984:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(570655),a=n(667294);const o=function(e){var t=e.children,n=e.element,o=void 0===n?"span":n,s=e.className,i=(0,r.__rest)(e,["children","element","className"]),l=t?String(t):"",c=o;return a.createElement(c,(0,r.__assign)({},i,{dangerouslySetInnerHTML:{__html:l},className:s||""}))}},625633:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);const s=function(e){var t=e.isSingleLine,n=e.className,s=e.children,i=(0,r.__rest)(e,["isSingleLine","className","children"]),l=(0,o.classNames)("InputStub",n,{"InputStub--singleLine":t});return a.createElement("div",(0,r.__assign)({className:l},i),s)}},467406:(e,t,n)=>{"use strict";n.d(t,{ListActionsControl:()=>s});var r=n(570655),a=n(667294),o=n(659397),s=function(e){var t=e.element,n=void 0===t?"span":t,s=e.alt,i=e.className,l=(0,r.__rest)(e,["element","alt","className"]),c=n,d=(0,o.classNames)("ListActionsControl",i);return a.createElement(c,(0,r.__assign)({"aria-label":s,className:d},l),a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"currentColor","aria-hidden":"true"},a.createElement("path",{d:"M5 4.8c-.2 0-.3 0-.4-.1l-4.3-3.2c-.3-.3-.4-.8-.2-1.1.2-.3.7-.4 1-.2l3.9 2.9 3.8-2.9c.3-.3.8-.2 1 .1.3.3.2.8-.1 1.1l-4.2 3.2c-.2.1-.3.2-.5.2z"})))}},239132:(e,t,n)=>{"use strict";n.d(t,{ListAddControl:()=>s});var r=n(570655),a=n(667294),o=n(659397),s=function(e){var t=e.className,n=e.children,s=(0,r.__rest)(e,["className","children"]),i=(0,o.classNames)("ListAddControl",t);return a.createElement("button",(0,r.__assign)({className:i},s),a.createElement("span",{className:"ListAddControl__icon"},a.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},a.createElement("path",{d:"M9 7h6c.552 0 1 .448 1 1s-.448 1-1 1h-6v6c0 .552-.448 1-1 1s-1-.448-1-1v-6h-6c-.552 0-1-.448-1-1s.448-1 1-1h6v-6c0-.552.448-1 1-1s1 .448 1 1z",fill:"currentColor"}))),n)}},580044:(e,t,n)=>{"use strict";n.d(t,{ListIconColors:()=>r,ListIcon:()=>s});var r,a=n(667294),o=n(659397);!function(e){e.BLUE="blue",e.GREEN="green",e.GRAY="gray",e.RED="red"}(r||(r={}));var s=function(e){var t=e.icon,n=e.color;return a.createElement("div",{className:(0,o.classNames)("ListIcon","ListIcon--"+n)},t)}},787255:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(570655),a=n(667294),o=n(659397),s=n(383925);const i=function(e){var t=e.icon,n=void 0===t?null:t,i=e.aside,l=void 0===i?null:i,c=e.chevron,d=void 0!==c&&c,u=e.selectable,h=void 0===u||u,p=e.border,m=void 0===p||p,f=e.className,v=e.children,g=e.active,y=e.canBeHovered,b=void 0===y||y,_=(0,r.__rest)(e,["icon","aside","chevron","selectable","border","className","children","active","canBeHovered"]),E={"ListItem--chevron":d,"ListItem--selectable":h,"ListItem--border":m,"ListItem--active":g,"ListItem--can-be-hovered":b};return a.createElement("li",(0,r.__assign)({},_,{className:(0,o.classNames)("ListItem",E,f)}),n&&a.createElement("div",{className:"ListItem__icon"},n),a.createElement("div",{className:"ListItem__main"},v),a.createElement("div",{className:"ListItem__aside"},l),d&&a.createElement(s.default,{width:26,height:26,style:{color:"var(--icon_tertiary)"}}))}},842194:(e,t,n)=>{"use strict";n.d(t,{ListMore:()=>s});var r=n(570655),a=n(667294),o=n(659397),s=function(e){var t=e.children,n=e.className,s=(0,r.__rest)(e,["children","className"]);return a.createElement("button",(0,r.__assign)({className:(0,o.classNames)("ListMore",n)},s),t)}},814210:(e,t,n)=>{"use strict";n.d(t,{ListMultiSelectControl:()=>i});var r=n(667294),a=n(659397),o=n(482792),s=n(237432),i=function(e){var t,n=e.isSelected,i=(0,a.classNames)("ListMultiSelectControl",{"ListMultiSelectControl--checked":n});return t=n?r.createElement(o.default,null):r.createElement(s.default,null),r.createElement("div",{role:"switch","aria-checked":n,className:i},t)}},476288:(e,t,n)=>{"use strict";n.d(t,{ModalBody:()=>o});var r=n(667294),a=n(418793),o=function(e){var t=e.children,n=e.hasScroll;return void 0===n||n?r.createElement(a.Scroll,{className:"ModalBody"},t):r.createElement("div",{className:"ModalBody"},t)}},750901:(e,t,n)=>{"use strict";n.d(t,{ModalClose:()=>o});var r=n(667294),a=n(659397),o=function(e){var t=e.className,n=e.onClose,o=(0,a.classNames)("ModalClose",t);return r.createElement("button",{className:o,type:"button",onClick:n,"aria-label":"Закрыть"},r.createElement("div",{className:"ModalClose__wrap"},r.createElement("div",{className:"ModalClose__icon"})))}},150382:(e,t,n)=>{"use strict";n.d(t,{ModalFooter:()=>o});var r=n(667294),a=n(659397),o=function(e){var t=e.className,n=e.actionButtons,o=e.hint,s=e.children;return r.createElement("div",{className:(0,a.classNames)("ModalFooter",t)},r.createElement("div",{className:"ModalFooter__inner"},o&&r.createElement("div",{className:"ModalFooter__hint",role:"presentation"},o),s&&r.createElement("div",{className:"ModalFooter__content"},s),n))}},743927:(e,t,n)=>{"use strict";n.d(t,{ModalHeader:()=>s});var r=n(667294),a=n(659397),o=n(733024),s=function(e){var t=e.className,n=e.title,s=e.onClose,i=e.backText,l=e.onBack,c=(0,a.classNames)("ModalHeader",t);return r.createElement("div",{className:c},i&&r.createElement("button",{className:"ModalHeader__back",onClick:l},i),r.createElement("h1",{className:"ModalHeader__title"},n),r.createElement("button",{className:"ModalHeader__cross",type:"button",onClick:s},r.createElement(o.default,{width:22,height:22}),"Закрыть"))}},792110:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);const s=function(e){var t=e.className,n=(0,r.__read)(a.useState(!1),2),s=n[0],i=n[1];return a.useEffect((function(){var e=setTimeout((function(){i(!0)}),140);return function(){return clearTimeout(e)}}),[]),s?a.createElement("div",{className:(0,o.classNames)("ModalPreloader",t)},a.createElement("div",{className:"ModalPreloader__animation"},a.createElement("div",{className:"ModalPreloader__dot"}),a.createElement("div",{className:"ModalPreloader__dot"}),a.createElement("div",{className:"ModalPreloader__dot"})),a.createElement("div",{className:"ModalPreloader__background"})):null}},203244:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);const s=function(e){var t=e.className,n=void 0===t?"":t,s=e.title,i=void 0===s?"":s,l=e.isSaved,c=void 0!==l&&l,d=e.savedTitle,u=void 0===d?"":d,h=e.children,p=(0,r.__rest)(e,["className","title","isSaved","savedTitle","children"]),m=(0,r.__read)((0,a.useState)(!1),2),f=m[0],v=m[1];(0,a.useEffect)((function(){u&&v(c)}),[c]);var g=null;if(i){var y=null;u&&(y=a.createElement("div",{className:(0,o.classNames)("PageBlock__savedTitle",{"PageBlock__savedTitle--shown":f})},u)),g=a.createElement("h2",{className:"PageBlock__header"},a.createElement("div",{className:"PageBlock__headerTitle"},i),y)}return a.createElement("div",(0,r.__assign)({className:(0,o.classNames)("PageBlock",n)},p),g,h)}},343390:(e,t,n)=>{"use strict";n.d(t,{Targets:()=>r,PhotoAreaSelector:()=>h});var r,a=n(570655),o=n(667294),s=n(659397),i=n(120217);!function(e){e.NONE="none",e.MAIN="main",e.PREVIEW_50="50",e.PREVIEW_100="100",e.NW="nw",e.NE="ne",e.N="n",e.SW="sw",e.SE="se",e.S="s",e.W="w",e.E="e"}(r||(r={}));var l=[r.NW,r.NE,r.N,r.SW,r.SE,r.S,r.W,r.E],c=[r.NW,r.NE,r.SW,r.SE],d=[r.MAIN,r.PREVIEW_50,r.PREVIEW_100],u=(0,a.__spreadArray)((0,a.__spreadArray)([],(0,a.__read)(l)),(0,a.__read)(d)),h=function(e){var t=e.className,n=e.minWidth,h=e.minHeight,m=e.rect,f=e.rotate,v=void 0===f?0:f,g=e.onCropUpdated,y=e.preview50,b=void 0!==y&&y,_=e.preview100,E=void 0!==_&&_,N=e.isSquare,w=void 0!==N&&N,S=(0,o.useRef)(null),C=w?1:e.minAspectRatio||1,k=w?1:e.maxAspectRatio||1,O=w?c:l,M=m||(0,i.getInitRect)(e),x=(0,a.__read)((0,i.getThumbSize)(e,M),7),T=x[0],P=x[1],L=x[2],j=x[3],R=x[4],D=x[5],H=x[6];function I(e){return e*H}function W(e){return e/H}var A=(0,i.getInitCrop)(e,M,C,k,W),B=(0,a.__read)((0,o.useState)(r.NONE),2),z=B[0],F=B[1],V=(0,a.__read)((0,o.useState)(A),2),U=V[0],$=V[1],K=(0,a.__read)((0,o.useState)(A),2),G=K[0],X=K[1],Y=(0,a.__read)((0,o.useState)({x:0,y:0}),2),q=Y[0],Z=Y[1],J=(0,a.__read)((0,o.useState)({x:0,y:0}),2),Q=J[0],ee=J[1],te=(0,a.__read)((0,o.useState)({x:0,y:0}),2),ne=te[0],re=te[1],ae=(0,a.__read)((0,o.useState)(!1),2),oe=ae[0],se=ae[1],ie=(0,a.__read)((0,o.useState)(!1),2),le=ie[0],ce=ie[1];(0,o.useEffect)((function(){var t=(0,i.getInitCrop)(e,M,C,k,W);t.left===U.left&&t.top===U.top&&t.width===U.width&&t.height===U.height||($(t),X(t)),g({left:Math.floor(t.left),top:Math.floor(t.top),width:Math.floor(t.width),height:Math.floor(t.height)})}),[v]);var de=u.reduce((function(e,t){var n;return e[t]=(n=t,function(e){var t=e.pageX,a=e.pageY,o=(0,i.getXY)(S.current),s={x:U.left,y:U.top};if(l.includes(n)){var c=[n.charAt(0),n.length>1?n.charAt(1):n.charAt(0)];s={x:s.x+(c[1]==r.W?0:U.width),y:s.y+(c[0]==r.N?0:U.height)}}F(n),Z(o),X(U),ee({x:t,y:a}),re(s),se(!0),e.stopPropagation(),e.preventDefault()}),e}),{}),ue=function(e){var t={x:e.pageX,y:e.pageY};d.includes(z)?((0,i.move)(M,U,G,Q,t,$,W),document.body.style.cursor="move"):l.includes(z)&&((0,i.resize)(M,t,ne,U,z,q,n,h,C,k,W,re,F,$),document.body.style.cursor=z+"-resize"),e.stopPropagation(),e.preventDefault()},he=function(e){F(r.NONE),se(!1),g(U),document.body.style.cursor="",e.stopPropagation(),e.preventDefault()};(0,o.useEffect)((function(){return oe?(window.addEventListener("mousemove",ue),window.addEventListener("mouseup",he)):(window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",he)),function(){window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",he)}}),[oe,ue,he]);var pe=(0,s.classNames)("PhotoAreaSelector",oe?"PhotoAreaSelector--drag-yes":"PhotoAreaSelector--drag-no",t),me=(0,a.__read)((0,i.rectToThumbSize)(U,M,I),6),fe=me[0],ve=me[1],ge=me[2],ye=me[3],be=me[4],_e=me[5],Ee=v%4*90,Ne="center";return 1===v?Ne=j/2+"px "+j/2+"px":3===v&&(Ne=L/2+"px "+L/2+"px"),o.createElement("div",{className:pe},o.createElement("div",{className:"PhotoAreaSelector__mainWrapper",style:{width:T,height:P}},o.createElement("div",{className:"PhotoAreaSelector__frameWrapper",style:{width:T,height:P}},o.createElement("img",{src:e.imgSrc,style:{transformOrigin:Ne,width:L,height:j,willChange:"transform",transform:"translate("+R+"px, "+D+"px) rotate("+Ee+"deg)"},ref:S})),o.createElement("div",{className:"PhotoAreaSelector__faded"}),o.createElement("div",{className:"PhotoAreaSelector__linza",style:{width:fe,height:ve}},o.createElement("div",{className:"PhotoAreaSelector__linzaFrame",style:{transform:"translate("+ge+"px, "+ye+"px)"},onMouseDown:de[r.MAIN]},o.createElement("div",{className:"PhotoAreaSelector__linzaBorder"},o.createElement("img",{className:(0,s.classNames)("PhotoAreaSelector__linzaImage",{"PhotoAreaSelector__linzaImage--loaded":le}),onLoad:function(){return ce(!0)},src:e.imgSrc,style:{transformOrigin:Ne,width:L,height:j,transform:"translate("+-be+"px, "+-_e+"px) rotate("+Ee+"deg)"}})))),o.createElement(o.Fragment,null,O.map((function(e){var t=0,n=0;if(1===e.length)e===r.N||e===r.S?(t=I(U.left+U.width/2)-5,n=I(U.top+(e===r.N?0:U.height))-5):(t=I(U.left+(e===r.W?0:U.width))-5,n=I(U.top+U.height/2)-5);else{var a=e.charAt(0),i=e.charAt(1);t=I(U.left+(i===r.W?0:U.width))-5,n=I(U.top+(a===r.N?0:U.height))-5}var l=(0,s.classNames)("PhotoAreaSelector__handler","PhotoAreaSelector__handler--type-"+e,oe?"PhotoAreaSelector__handler--dragged-yes":"PhotoAreaSelector__handler--dragged-no");return o.createElement("div",{key:e,className:l,style:{transform:"translate("+t+"px, "+n+"px)"},onMouseDown:de[e]})})))),w&&(b||E)?o.createElement("div",{className:"PhotoAreaSelector__previewsWrapper"},E&&p(100,U,M,e,de[r.PREVIEW_50]),b&&p(50,U,M,e,de[r.PREVIEW_100])):null)};function p(e,t,n,r,a){var i=r.imgWidth,l=r.imgHeight,c=r.rotate,d=void 0===c?0:c,u=(0,s.classNames)("PhotoAreaSelector__preview","PhotoAreaSelector__preview--"+e),h=(0,s.classNames)("PhotoAreaSelector__previewWrapper","PhotoAreaSelector__previewWrapper--"+e),p=-Math.floor((n.left+t.left)*e/t.width),m=-Math.floor((n.top+t.top)*e/t.width),f=Math.ceil(i*e/t.width),v=Math.ceil(l*e/t.height),g=d%4*90,y="center";return 1===d?y=v/2+"px "+v/2+"px":3===d&&(y=f/2+"px "+f/2+"px"),o.createElement("div",{className:u},o.createElement("div",{onMouseDown:a,className:h},o.createElement("img",{src:r.imgSrc,style:{width:f,height:v,transformOrigin:y,willChange:"transform",transform:"translate("+p+"px, "+m+"px) rotate("+g+"deg)"}})))}},120217:(e,t,n)=>{"use strict";n.d(t,{resize:()=>o,move:()=>s,getInitRect:()=>i,getThumbSize:()=>l,getInitCrop:()=>c,rectToThumbSize:()=>d,getXY:()=>h});var r=n(570655),a=n(343390);function o(e,t,n,r,o,s,i,l,c,d,h,m,f,v){var g=function(e,t,n,r){return{x:p(Math.max(0,r(e.x-t.x)-n.left)),y:p(Math.max(0,r(e.y-t.y)-n.top))}}(t,s,e,h),y=g.x-n.x,b=g.y-n.y;if(i=h(i),l=h(l),y||b){var _=e.width,E=e.height,N=r.left,w=r.top,S=r.width,C=r.height,k=0,O=0;2===o.length?(k=o.startsWith(a.Targets.N)?-1:1,O=o.charAt(1)===a.Targets.W?-1:1):(k=o===a.Targets.N?-1:o===a.Targets.S?1:0,O=o===a.Targets.W?-1:o===a.Targets.E?1:0),k&&C+u(k)*b<l/2&&(k=-k,b=g.y-(r.top+(k>0?r.height:0))),O&&S+u(O)*y<i/2&&(O=-O,y=g.x-(r.left+(O>0?r.width:0)));var M=k?u(k):0,x=O?u(O):0;c>0&&S+x*y<(C+M*b)*c&&(O?y=x*Math.ceil((C+M*b)*c-S):b=M*Math.floor(S/c-C)),d>0&&S+x*y>(C+M*b)*d&&(k?b=M*Math.ceil((S+x*y)/d-C):y=x*Math.floor(C*d-S)),k&&((C+=u(k)*b)<l?(w-=k>0?0:l-C-b,C=l):w+=k>0?0:b),O&&((S+=u(O)*y)<i?(N-=O>0?0:i-S-y,S=i):N+=O>0?0:y);var T=0,P=0,L=0,j=0;N<0?(T=N,N=0):S>_-N&&(T=_-N-S),T&&(S+=T,c>0&&S<c*C&&(C+=j=Math.floor(S/c)-C,w-=k>0?0:j)),w<0?(P=w,w=0):C>E-w&&(P=E-w-C),P&&(C+=P,d>0&&S>d*C&&(S+=L=Math.floor(C*d)-S,N-=O>0?0:L));var R=k>0?a.Targets.S:k<0?a.Targets.N:"",D=O>0?a.Targets.E:O<0?a.Targets.W:"",H={left:p(N),top:p(w),width:p(S),height:p(C)};if(r.top!==H.top||r.left!==H.left||r.width!==H.width||r.height!==H.height){v(H),m({x:H.left+(O>0?H.width:0),y:H.top+(k>0?H.height:0)});var I=R+D;I!==o&&f(I)}}}function s(e,t,n,a,o,s,i){var l=Math.round(n.left+i(o.x-a.x)),c=Math.round(n.top+i(o.y-a.y)),d=p(Math.min(Math.floor(e.width-t.width),Math.max(0,l))),u=p(Math.min(Math.floor(e.height-t.height),Math.max(0,c)));t.left===d&&t.top===u||s((0,r.__assign)((0,r.__assign)({},t),{left:d,top:u}))}function i(e){var t=e.rotate,n=void 0===t?0:t;return{left:0,top:0,width:n%2?e.imgHeight:e.imgWidth,height:n%2?e.imgWidth:e.imgHeight}}function l(e,t){var n=e.previewWidth,r=e.previewHeight,a=e.imgWidth,o=e.imgHeight,s=t.left,i=t.top,l=t.width,c=t.height,d=l-s,u=c-i;if(n){var h=n,p=h/l,m=Math.floor(c*p);return r&&d<u&&(p=(m=r)/c,h=Math.floor(l*p)),[h,m,h*(a/l),m*(o/c),-1*s*p,-1*i*p,p]}return[d,u,a,o,-s,-i,1]}function c(e,t,n,r,a){if(e.cropRect)return e.cropRect;var o=t.width,s=t.height,i=e.minWidth,l=e.minHeight;i=a(i),l=a(l);var c={left:Math.floor(.1*o),top:Math.floor(.1*s),width:Math.floor(.8*o),height:Math.floor(.8*s)};if(c.width<i){var d=i>o?o:i;c.left=Math.max(0,c.left-Math.floor((d-c.width)/2)),c.width=d}if(c.height<l){var u=l>s?s:l;c.left=Math.max(0,c.top-Math.floor((u-c.height)/2)),c.height=u}return c.width<c.height*n&&(c.top=Math.max(0,c.top-Math.floor((c.width/n-c.height)/4)),c.height=Math.floor(c.width/n)),c.width>c.height*r&&(c.left=Math.max(0,c.left-Math.floor((c.height*r-c.width)/2)),c.width=Math.floor(c.height*r)),(o<c.left+c.width||s<c.top+c.height)&&(o<s?(c.left=0,c.top=Math.max(0,Math.floor((s-o)/2)),c.width=o,c.height=o):(c.left=Math.max(0,Math.floor((o-s)/2)),c.top=0,c.width=s,c.height=s)),c}function d(e,t,n){return[p(n(e.width)),p(n(e.height)),p(n(e.left)),p(n(e.top)),p(n(e.left+t.left)),p(n(e.top+t.top))]}function u(e){return e<0?-1:1}function h(e){var t=e.ownerDocument,n=e.getBoundingClientRect();if(!t)return{x:0,y:0};var r=t.documentElement;return{x:n.left+r.scrollLeft-(r.clientLeft||0),y:n.top+r.scrollTop-(r.clientTop||0)}}function p(e){return Number(e.toFixed(2))}},814217:(e,t,n)=>{"use strict";n.d(t,{Popper:()=>l});var r=n(570655),a=n(667294),o=n(394021),s=n(630810),i=n(659397),l=a.forwardRef((function(e,t){var n=e.open,l=void 0===n||n,c=e.position,d=void 0===c?"auto":c,u=e.mode,h=void 0===u?"side":u,p=e.align,m=void 0===p?"auto":p,f=e.attachTarget,v=void 0===f?document.body:f,g=e.content,y=e.children,b=(0,r.__rest)(e,["open","position","mode","align","attachTarget","content","children"]),_=(0,a.useRef)(null),E=(0,s.useCombinedRefs)(t,_),N=(0,r.__read)((0,a.useState)(null),2),w=N[0],S=N[1],C=(0,r.__read)((0,a.useState)(null),2),k=C[0],O=C[1],M=(0,r.__read)((0,a.useState)(null),2),x=M[0],T=M[1],P=(0,r.__assign)((0,r.__assign)({},y.props),{ref:E});return(0,a.useEffect)((function(){if(E&&E.current){var e=(0,r.__read)(function(e,t,n,r,a,o){if(!o)return[null,null,null];var s="auto";if(!e)return[{top:0,left:0,width:0,height:0},a===s?"left":a,r===s?"b":r];var l=(0,i.getOffsetRect)(e),c=(0,i.getOffsetRect)(t),d=r===s||a===s,u=d?window.innerWidth:0,h=d?window.innerHeight:0,p=d?window.pageYOffset||document.documentElement.scrollTop:0,m=d?window.pageXOffset||document.documentElement.scrollLeft:0;if(r===s){var f=l.top-p;r=p+h-l.top-l.height>f?"b":"t"}if(a===s){var v=l.left+.5*l.width,g=m+2*u/3;a=v>=m+u/3&&v<=g?"center":v>g?"right":"left"}var y=l.left,b=l.top;if("side"===n)return[{top:("b"===r?b+l.height:b)-c.top,left:("r"===r?y+l.width:y)-c.left,width:"t"===r||"b"===r?l.width:0,height:"l"===r||"r"===r?l.height:0},a,r];switch(r){case"t":y+=.5*l.width;break;case"r":y+=l.width,b+=.5*l.height;break;case"b":y+=.5*l.width,b+=l.height;break;case"l":b+=.5*l.height}return[{top:b-c.top,left:y-c.left,width:0,height:0},a,r]}(E.current,v,h,d,m,l),3),t=e[0],n=e[1],a=e[2];S(t),O(n),T(a)}}),[h,d,m,E.current,l,v]),a.createElement(a.Fragment,null,a.cloneElement(y,P),l&&a.createElement(o.WithPortal,(0,r.__assign)({},b,{className:(0,i.classNames)("Popper",k&&"Popper--"+k,x&&"Popper--"+x,b.className),"data-align":k,"data-position":x,portalContainerParent:v,style:w||void 0}),g))}))},156589:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(570655),a=n(667294),o=n(973935),s=n(659397),i=n(889366).default;const l=function(e){function t(t){var n,o=e.call(this,t)||this;return o.handleMouseDown=function(e){o.props.onFocus&&"function"==typeof o.props.onFocus&&o.props.onFocus(o.state.opened),"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),o.props.disabled||o.props.alwaysOpened||o.toggle(!o.state.opened))},o.getOptionByValue=function(e,t){for(var n=0;n<e.length;n++)if(e.hasOwnProperty(n)){var r=e[n];if("object"==typeof r){if("group"===r.type&&void 0!==r.items){var a=o.getOptionByValue(r.items||[],t);if(a)return a}if(r.value===t)return r}else if(r===t)return r}},o.setValue=function(e,t,n){n&&n.stopPropagation(),"object"==typeof t&&o.props.searchable&&(t=t.props.title);var r={value:e,label:"object"==typeof t?t:t.toString()},a={selected:r};o.fireChangeEvent(r),o.setState(a),o.props.alwaysOpened||o.toggle(!1)},o.fireChangeEvent=function(e){e!==o.state.selected&&o.props.onChange&&o.props.onChange({name:o.props.name,selected:e})},o.renderOption=function(e){var t=(0,s.classNames)("Select__option",{"Select__option--selected":e===o.state.selected}),n=void 0!==e.value?e.value:e.label||e,r=void 0!==e.label?e.label:e;return a.createElement("div",{key:n,className:t,onMouseDown:function(e){return o.setValue(n,r,e)},onClick:function(e){return o.setValue(n,r,e)},title:e.title},r)},o.buildMenu=function(){var e=o.state.filteredOptions.map((function(e){return"string"!=typeof e&&"group"===e.type?a.createElement("div",{className:"Select__group",key:e.name},e.name&&a.createElement("div",{className:"Select__title"},e.name),e.items&&e.items.map((function(e){return o.renderOption(e)}))):o.renderOption(e)}));return e.length?e:a.createElement("div",{className:"Select__noresults"},o.props.searchPlaceholder)},o.renderMenu=function(){return o.props.customMenu?o.props.customMenu(o.state.filteredOptions,o.setValue,o.state.selected):a.createElement("div",{className:"Select__menu"},o.buildMenu())},o.filterOptions=function(e,t){var n=e.toLowerCase();return t.filter((function(e){return"string"==typeof e?e.toLowerCase().includes(n):"string"==typeof e.label?e.label.toLowerCase().includes(n):"object"==typeof e.label&&e.label.props.title.toLowerCase().indexOf(n)>=0}))},o.handleSearchType=function(e){var t=o.filterOptions(e.target.value,o.state.allOptions);o.setState({selected:{value:e.target.value,label:e.target.value},filteredOptions:t}),o.toggle(!0),o.props.onType&&o.props.onType(e.target.value)},o.handleEditableType=function(e){o.setState({opened:!0}),o.props.onEdit&&o.props.onEdit(e.target.value)},o.buildControl=function(e){var t,n,l="",c=o.props,d=c.searchable,u=c.editable,h=c.inputOtherProps,p=(0,s.classNames)("Select__input",h&&h.className);return e&&"string"==typeof e&&(l=e),e&&"object"==typeof e&&(e&&"string"==typeof e.label&&(l=e.label),e&&"object"==typeof e.label&&d&&(l=e.label.props.title||""),e&&"object"==typeof e.label&&!d&&(n=e.placeholder||e.label)),t=d?a.createElement("div",{className:"Select__control",onClick:o.handleMouseDown},a.createElement(i,(0,r.__assign)({placeholder:o.props.placeholder,value:l||"",onChange:o.handleSearchType.bind(o),onFocus:o.props.onInputFocus,onBlur:function(e){var t,n;return null===(n=(t=o.props).onInputBlur)||void 0===n?void 0:n.call(t,e,o.state.filteredOptions)},disabled:o.props.disabled,isControlledOutside:!0},h,{className:p})),a.createElement("span",{className:"Select__arrow"})):u?a.createElement("div",{className:"Select__control",onClick:o.handleMouseDown},a.createElement(i,(0,r.__assign)({placeholder:o.props.placeholder,id:o.props.id,value:l||"",onChange:o.handleEditableType,onFocus:o.props.onInputFocus,onBlur:o.props.onInputBlur,disabled:o.props.disabled,isControlledOutside:!0,autoComplete:"off"},h,{className:p})),a.createElement("span",{className:"Select__arrow"})):a.createElement("div",{className:"Select__control",onClick:o.handleMouseDown},a.createElement("div",{className:"Select__placeholder"},l||n),a.createElement("span",{className:"Select__arrow"})),t},o.handleDocumentClick=function(e){o.mounted&&o.state.opened&&!o.props.alwaysOpened&&o.el&&!o.el.contains(e.target)&&o.toggle(!1)},n=void 0!==t.value?t.editable&&void 0!==t.customValue?{label:t.customValue,value:t.customValue}:o.getOptionByValue(t.options,t.value):{label:o.getLabel(t),value:""},o.state={filteredOptions:t.options,allOptions:t.options,selected:n,opened:!!t.alwaysOpened},o.mounted=!0,o}return(0,r.__extends)(t,e),t.prototype.getLabel=function(e){return this.props.searchable?this.props.value||"":e.placeholder||"Select..."},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.setState({filteredOptions:e.options,allOptions:e.options}),this.props.editable&&void 0!==e.customValue?this.setState({selected:{label:e.customValue,value:e.customValue}}):void 0!==e.value&&e.value!==this.state.selected?this.setState({selected:this.getOptionByValue(e.options,e.value)}):void 0===e.value&&this.setState({selected:{label:this.getLabel(e),value:""}})},t.prototype.componentDidMount=function(){this.el=o.findDOMNode(this),document.addEventListener("mousedown",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)},t.prototype.componentWillUnmount=function(){this.mounted=!1,document.removeEventListener("mousedown",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)},t.prototype.toggle=function(e){var t=this;this.setState({opened:e},(function(){var e,n,r,a;t.state.opened?null===(n=(e=t.props).onShow)||void 0===n||n.call(e):null===(a=(r=t.props).onHide)||void 0===a||a.call(r)}))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.appearance,r=e.style,o=e.searchable,i=e.editable,l=e.disabled,c=e.position,d=e.isFluid,u=e.alwaysNotEmpty,h=this.state,p=h.selected,m=h.opened,f=!u&&p&&"object"==typeof p&&!p.value||!1,v=o||i?"secondary":n,g=(0,s.classNames)("Select","Select--"+v,"Select--"+c,{"Select--opened":!!m,"Select--disabled":!!l,"Select--empty":f,"Select--isFluid":d},t),y=this.buildControl(p);return a.createElement("div",{className:g,style:r},y,this.state.opened&&this.renderMenu())},t.defaultProps={appearance:"primary",searchPlaceholder:"No options found",searchable:!1,editable:!1,inputOtherProps:{},onShow:function(){},onHide:function(){},position:"b"},t}(a.Component)},284454:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);const s=function(e){function t(n){var r,o=e.call(this,n)||this;return o.onMouseDown=function(e){0===e.button&&(o.update(e),o.setState({isActive:!0}),window.addEventListener("mouseup",o.onMouseUp),window.addEventListener("mousemove",o.onMouseMove))},o.onMouseMove=function(e){requestAnimationFrame((function(){return o.update(e)}))},o.onMouseUp=function(){o.setState({isActive:!1}),window.removeEventListener("mousemove",o.onMouseMove),window.removeEventListener("mouseup",o.onMouseUp)},o.onMouseEnter=function(){window.addEventListener("mousemove",o.updateHint)},o.onMouseLeave=function(){window.removeEventListener("mousemove",o.updateHint)},o.update=function(e){var n=o.props,r=n.min,a=n.max,s=n.gravity,i=o.getOffset(e),l=i.offset,c=i.width,d=o.getZeroPosition(),u=t.valueToPercent(l,0,c);s&&s>0&&u>=d-s&&u<=d+s&&(u=d),o.state.percentValue!==u&&(o.setState({hintPosition:u}),o.props.onChange(t.percentToValue(u,r,a)),o.isControlledOutside||o.setState({percentValue:u}))},o.updateHint=function(e){var n=o.getOffset(e),r=n.offset,a=n.width;o.setState({hintPosition:t.valueToPercent(r,0,a)})},r=n.value?t.valueToPercent(n.value,n.min,n.max):n.defaultValue?t.valueToPercent(n.defaultValue,n.min,n.max):o.getZeroPosition(),o.state={percentValue:r,hintPosition:0,isActive:!1},o.isControlledOutside=o.props.hasOwnProperty("value"),o.slider=a.createRef(),o}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){this.slider.current&&this.slider.current.addEventListener("mousedown",this.onMouseDown),this.slider.current&&this.slider.current.addEventListener("mouseenter",this.onMouseEnter),this.slider.current&&this.slider.current.addEventListener("mouseleave",this.onMouseLeave)},t.prototype.componentWillUnmount=function(){this.slider.current&&this.slider.current.removeEventListener("mousedown",this.onMouseDown),this.slider.current&&this.slider.current.removeEventListener("mouseenter",this.onMouseEnter),this.slider.current&&this.slider.current.removeEventListener("mouseleave",this.onMouseLeave)},t.prototype.componentDidUpdate=function(e){var n=this.props.value;if(this.isControlledOutside&&void 0!==n&&n!==e.value){var r=this.props,a=r.min,o=r.max;this.setState({percentValue:t.valueToPercent(n,a,o)})}},t.valueToPercent=function(e,t,n){return e<t&&(e=t),e>n&&(e=n),100*(e-t)/(n-t)},t.percentToValue=function(e,t,n){return Math.round(100*(e*(n-t)/100+t))/100},t.getFillPosition=function(e,t){var n,r;return e<t?(n=e,r=t-e):(n=t,r=e-t),{left:n,width:r}},t.prototype.getZeroPosition=function(){var e=this.props,n=e.min,r=e.max;return t.valueToPercent(0,n,r)},t.prototype.getOffset=function(e){var t=this.props,n=t.min,r=t.max,a=t.step,s=(0,o.getOffsetRect)(this.slider.current),i=s.left,l=s.width,c=e.clientX-i;if(a>0){var d=l/((r-n)/a);c=Math.round(c/d)*d}return{offset:c,left:i,width:l}},t.prototype.render=function(){var e=this.props,n=e.min,r=e.max,s=e.isShowZero,i=e.isShowHandle,l=e.appearance,c=this.state,d=c.percentValue,u=c.hintPosition,h=c.isActive,p=this.getZeroPosition(),m=t.getFillPosition(d,p),f=m.left,v=m.width,g=d!==p,y=this.props.formatHint(t.percentToValue(u,n,r)),b=(0,o.classNames)("Slider","Slider--"+l,{Slider__active:h}),_=(0,o.classNames)("Slider__handle",{"Slider__handle--active":g,"Slider__handle--show":i});return a.createElement("div",{className:b,ref:this.slider},a.createElement("input",{type:"hidden",name,value:d}),s&&g&&a.createElement("div",{className:"Slider__middletick",style:{left:p+"%"}}),a.createElement("span",{className:"Slider__hint",style:{left:u+"%"}},y),a.createElement("div",{className:"Slider__fill",style:{left:f+"%",width:v+"%"}}),a.createElement("div",{className:_,style:{left:d+"%"}}))},t.defaultProps={min:0,max:100,step:0,gravity:0,isShowZero:!1,isShowHandle:!1,defaultValue:0,appearance:"blue",name:"value",onChange:function(){},formatHint:function(e){return e}},t}(a.Component)},841118:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);const s=function(e){var t=e.children,n=e.className,s=(0,r.__rest)(e,["children","className"]);return a.createElement("div",(0,r.__assign)({},s,{className:(0,o.classNames)("Stub",n)}),t||"No results.")}},641388:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(570655),a=n(667294),o=n(659397);const s=function(e){function t(t){var n=e.call(this,t)||this;return n.getActiveTabKey=function(){var e=n.props,t=e.active,r=e.activeRequired,o=[],s=null;return a.Children.forEach(n.props.children,(function(e){a.isValidElement(e)&&(e.key===t?s=e.key:o.push(e))})),s||("number"==typeof t&&o.length>t?o[t].key||t:r&&o.length?o[0].key||0:null)},n.onClick=function(e,t){if(t!==n.state.active){var r=n.refsStore[t],a=n.getTransform(r);n.setState({active:t,isAnimating:!0,transform:a}),n.props.onTabClick&&n.props.onTabClick(e,t)}},n.onTransitionEnd=function(e){"transform"===e.propertyName&&n.setState({isAnimating:!1})},n.storeRef=function(e,t){t&&(n.refsStore[e]=t)},n.refsStore={},n.state={isAnimating:!1,active:n.getActiveTabKey()},n}return(0,r.__extends)(t,e),t.reactifyTabs=function(e){return(Array.isArray(e)?e:Object.values(e)).map((function(e){return a.createElement("a",{key:e[0],href:e[2],onClick:function(){}},e[1]?e[1]:"")}))},t.prototype.componentDidUpdate=function(e){void 0!==this.props.active&&this.props.active!==e.active&&this.setState({active:this.props.active})},t.prototype.getTransform=function(e){var t=e.offsetWidth;return"translateX("+(e.offsetLeft-50+.5*t)+"px) scaleX("+t/100+")"},t.prototype.componentDidMount=function(){if(this.state.active){var e=this.refsStore[this.state.active];this.setState({transform:this.getTransform(e)})}},t.prototype.render=function(){var e=this,t={"Tabs--animating":this.state.isAnimating};return a.createElement("nav",{className:(0,o.classNames)("Tabs",this.props.className,t),style:this.props.style},a.createElement("ul",{className:"Tabs__list"},a.Children.map(this.props.children,(function(t,n){var r;if(!a.isValidElement(t))return null;var s=t.key||n;return a.createElement("li",{className:(0,o.classNames)("Tabs__item",{"Tabs__item--active":e.state.active===s,"Tabs__item--disabled":null===(r=e.props.disabledTabMap)||void 0===r?void 0:r[s]}),onClick:function(t){return e.onClick(t,s)},ref:function(t){return e.storeRef(s,t)},key:s},t)}))),this.props.aside&&a.createElement("div",{className:"Tabs__aside"},this.props.aside),a.createElement("div",{style:{transform:this.state.transform},className:"Tabs__divider",onTransitionEnd:this.onTransitionEnd}))},t.defaultProps={active:0,activeRequired:!0,aside:null,style:{},className:""},t}(a.Component)},897404:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(570655),a=n(667294),o=n(973935),s=n(659397),i=n(195200),l=function(e){var t=e.position,n=e.align,r=e.text,a=e.rect,o=e.marginTop,s=e.marginLeft,i=e.maxWidth,l=e.appearance,c=e.className,d=a.left,u=a.top;switch(t){case"t":d+=.5*a.width;break;case"r":d+=a.width,u+=.5*a.height;break;case"b":d+=.5*a.width,u+=a.height;break;case"l":u+=.5*a.height}return{tooltip:{position:t,align:n,text:r,x:d=Math.round(d+(s||0)),y:u=Math.round(u+(o||0)),maxWidth:i,appearance:l,className:c}}};const c=function(e){function t(t){var n=e.call(this,t)||this;return n.tooltipRef=a.createRef(),n.onMouseEnter=function(){n.state.tooltip?(clearTimeout(n.closeDelayTimeout),n.state.tooltip.removed&&n.setState((0,r.__assign)((0,r.__assign)({},n.state),{tooltip:(0,r.__assign)((0,r.__assign)({},n.state.tooltip),{removed:!1})}))):n.props.delay?n.openDelayTimeout=window.setTimeout((function(){n.openDelayTimeout=0,n.drawTooltip()}),n.props.delay):n.drawTooltip()},n.onMouseLeave=function(){if(n.state.tooltip)n.props.delayHide?n.closeDelayTimeout=window.setTimeout((function(){n.update()}),n.props.delayHide):n.update();else if(n.openDelayTimeout)return clearTimeout(n.openDelayTimeout),void(n.openDelayTimeout=0)},n.onTransitionEnd=function(e){"visibility"===e.propertyName&&n.state.tooltip&&n.setState({tooltip:void 0})},n.state={el:null},n}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=o.findDOMNode(this);this.setState({el:e}),null==e||e.addEventListener("mouseenter",this.onMouseEnter),null==e||e.addEventListener("mouseleave",this.onMouseLeave)},t.prototype.componentDidUpdate=function(e,t){var n,r;!t.tooltip&&this.state.tooltip&&this.props.allowMouseOverTooltipContent&&(null===(n=this.tooltipRef.current)||void 0===n||n.addEventListener("mouseenter",this.onMouseEnter),null===(r=this.tooltipRef.current)||void 0===r||r.addEventListener("mouseleave",this.onMouseLeave))},t.prototype.componentWillUnmount=function(){var e,t,n,r;null===(e=this.state.el)||void 0===e||e.removeEventListener("mouseenter",this.onMouseEnter),null===(t=this.state.el)||void 0===t||t.removeEventListener("mouseleave",this.onMouseLeave),null===(n=this.tooltipRef.current)||void 0===n||n.removeEventListener("mouseenter",this.onMouseEnter),null===(r=this.tooltipRef.current)||void 0===r||r.removeEventListener("mouseleave",this.onMouseLeave),clearTimeout(this.closeDelayTimeout),clearTimeout(this.openDelayTimeout)},t.getDerivedStateFromProps=function(e,t){return t.tooltip&&(e.text!==t.tooltip.text||e.position!==t.tooltip.position||e.align!==t.tooltip.align||e.maxWidth!==t.tooltip.maxWidth||e.appearance!==t.tooltip.appearance)?l((0,r.__assign)((0,r.__assign)({},e),{rect:(0,s.getOffsetRect)(t.el instanceof HTMLElement?t.el:null)})):null},t.prototype.drawTooltip=function(){if(this.state.el&&!this.state.tooltip){var e=this.props,t=e.text,n=e.position,r=e.align,a=e.marginTop,o=e.marginLeft,i=e.maxWidth,l=e.appearance,c=e.className,d=(0,s.getOffsetRect)(this.state.el instanceof HTMLElement?this.state.el:null);this.update({text:t,position:n,align:r,rect:d,marginTop:a,marginLeft:o,maxWidth:i,appearance:l,className:c})}},t.prototype.update=function(e){e?this.setState(l(e)):this.setState({tooltip:Object.assign({},this.state.tooltip,{removed:!0})})},t.prototype.render=function(){var e=this.state.tooltip?(0,r.__assign)((0,r.__assign)({},this.state.tooltip),{className:(0,s.classNames)(this.state.tooltip.className,{"Tooltip--noPointerEvents":!this.props.allowMouseOverTooltipContent})}):null;return e&&"undefined"!=typeof window?a.createElement(a.Fragment,null,this.props.children,a.createElement(i.default,(0,r.__assign)({tooltipInRef:this.tooltipRef},e,{onTransitionEnd:this.onTransitionEnd}))):this.props.children},t.defaultProps={position:"b",align:"center",marginTop:0,marginLeft:0,appearance:"dark",delay:0,delayHide:0,allowMouseOverTooltipContent:!1},t}(a.Component)},6969:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(667294);const a=function(e){var t=e.children;return r.createElement("div",{className:"VisuallyHidden"},t)}},394021:(e,t,n)=>{"use strict";n.d(t,{WithPortal:()=>i});var r=n(570655),a=n(667294),o=n(973935),s=function(){return document.createElement("div")},i=(0,a.forwardRef)((function(e,t){var n=e.children,i=e.portalContainerParent,l=void 0===i?document.body:i,c=e.renderNodeFactory,d=void 0===c?s:c,u=(0,r.__rest)(e,["children","portalContainerParent","renderNodeFactory"]),h=(0,a.useRef)(null);return h.current||(h.current=d(),l.appendChild(h.current)),(0,a.useEffect)((function(){return function(){h.current&&h.current.remove()}}),[]),o.createPortal(a.createElement("div",(0,r.__assign)({},u,{ref:t}),n),h.current)}))},713696:(e,t,n)=>{"use strict";n.d(t,{decodeHTMLEntities:()=>o});var r=n(570655),a=[["&amp;","&"],["&lt;","<"],["&gt;",">"],["&quot;",'"'],["&#33;","!"]];function o(e){return a.reduce((function(e,t){var n=(0,r.__read)(t,2),a=n[0],o=n[1];return e.replace(new RegExp(a,"ig"),o)}),e).replace(/&#(\d+);/g,(function(e,t){return String.fromCodePoint(t)}))}},630810:(e,t,n)=>{"use strict";n.d(t,{useCombinedRefs:()=>a});var r=n(667294);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,r.useRef)(null);return r.useEffect((function(){e.forEach((function(e){null!==e&&null!==n&&(e.current=n.current)}))}),[e]),n}}}]);try{stManager.done("dist/palette.5e092236a1c18e3a4dc9.js")}catch(e){}